import commonService from 'service/common'
export default {
    async comingRecord(data) {
        let dataObj = Object.assign({
            userId: '',
            page: '',
            count: '',
            startTime: '',
            endTime: ''
        }, data);
        let paramsJson = {
            baseURL: '/webapiThird',
            method: 'post',
            url: 'webapi/callRecord/memberByUserIdWithPage',
            data: dataObj
        }
        let jsondata = await commonService.asyncFetchData(paramsJson)
        return jsondata
    },
    async outRecord(data) {
        let dataObj = Object.assign({
            // userName: '',
            // mobile: '',
            // province: ''
        }, data)

        let paramsJson = {
            baseURL: '/webapi',
            method: 'post',
            url: '',
            params: dataObj
        }
        let jsondata = await commonService.asyncFetchData(paramsJson)
        return jsondata
    }
}